#include "queue.h"
#include <stdio.h>


int 
main(void)
{
	queue           ptr = create();
	int             data, data1, i;
	for (i = 0; i < 21; i++)
		push_back(ptr, i);
	pop_front(ptr);
	front(ptr, &data);
	back(ptr, &data1);
	printf("Queue's current size: %d\nfront element: %d\nback element: %d\n", size(ptr), data, data1);
	clear(ptr);
	if (front(ptr, &data) == false && back(ptr, &data1) == false)
		printf("queue is empty as expected!\n");
	delete(ptr);
	return 0;
}
